<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp"%>
<link type="text/css" href="${ctx}/styles/css/style.css" rel="stylesheet">
<body>
<script type="text/javascript">
$(document).ready(function(){
	$(".def-nav,.info-i").hover(function(){
		$(this).find(".pulldown-nav").addClass("hover");
		$(this).find(".pulldown").show();
	},function(){
		$(this).find(".pulldown").hide();
		$(this).find(".pulldown-nav").removeClass("hover");
	});
});
</script>
<div class="hd-main clearfix" id="header">
<!-- 	<a class="logo" href=""></a> -->
	<div style="width:175px;float:left;margin-left:10px;background-position:0 0;margin-top:5px;display:inline;height:36px"></div>
	<div class="navs">
		<a class="def-nav" href="${ctx}/index.jsp">首页</a>
		<span class="separate"></span>
		<div class="def-nav current has-pulldown-special">
			<a class="pulldown-nav" href=""><em class="f-icon"></em>系统管理</a>
			<div class="pulldown app-url" style="z-index:999">
				<div class="content">
						<c:if test="${pageContext.request.remoteUser != null}">
							<c:set var="activeTopMenuId"
								value="${not empty top?top:''}" />
							<c:set var="activeLeftMenuId"
								value="${not empty left?left:''}" />
							<c:forEach items="${fns:getMenuList()}" var="menu"
								varStatus="idxStatus">
								<c:if test="${menu.parent.id eq activeTopMenuId && menu.isShow eq 1}">
									<a target="_self" class="li disk ${activeLeftMenuId==menu.id?'selected':''}" href="${fn:indexOf(menu.href, '://') eq -1?ctx:''}${not empty menu.href?menu.href:'/404'}${fn:indexOf(menu.href, '?') eq -1?'?':'&'}top=${activeTopMenuId}&left=${menu.id}"> 
										<span class="icon"></span> 
										<span class="text">${menu.name}</span>
									</a>
								</c:if>
							</c:forEach>
						</c:if>
				</div>
			</div>
		</div>
	</div>
	<div class="info">
		<ul>
			<li class="info-i user-name has-pulldown">
				<em class="f-icon pull-arrow"></em>
				<a class="f-icon identity" href="" title="未开通VIP"></a>
<%-- 				<span class="name top-username"><%=((User)SpringSecurityUtils.getCurrentUser()).getName()%></span> --%>
				<span class="name top-username"><sec:authentication property="name"/></span>
				<div class="pulldown user-info">
					<em class="arrow"></em>
					<div class="content">
						<span class="li"><a href="${ctx}/user/view.do">个人资料</a></span>
						<span class="li"><a href="${ctx}/user/changePwd.do">修改密码</a></span>
						<span class="separate-li no-height"></span>
						<span class="li"><a href="${ctx}/logout" id="signout">退出</a></span>
					</div>
				</div>
			</li>
			<li class="info-i default-text">
				<a class="notice" href="" id="notificationTrigger">通知</a>
				<em class="f-icon notice-nu" id="noticeNoParent">
					<b class="f-icon" id="noticeNo">0</b>
				</em>
			</li>
			<li class="info-i no-separate default-text has-pulldown">
				<em class="f-icon pull-arrow"></em>
				<span class="more" hideFocus="hideFocus">更多</span>
				<div class="pulldown more-info">
					<em class="arrow"></em>
					<div class="content">
						<span class="separate-li no-height"></span>
						<span class="li"><a href="">收藏工具</a></span>
						<span class="li"><a href="">历史记录</a></span>
						<span class="li"><a href="">版本更新</a></span>
						<span class="li"><a href="">帮助中心</a></span>
						<span class="li"><a href="">问题反馈</a></span>
						<span class="li"><a href="">服务协议</a></span>
						<span class="li"><a href="">权利声明</a></span>
					</div>
				</div>
			</li>
		</ul>
	</div>
</div>
</body>
